cmake_minimum_required(VERSION 2.8.3)
project(test_tsp)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++14")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")

find_package(Eigen3 REQUIRED)
find_package(PCL 1.7 REQUIRED)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  visualization_msgs
  cv_bridge
#  lkh_tsp_solver
  lkh_mtsp_solver
  roslib
)


catkin_package(
 INCLUDE_DIRS
 LIBRARIES test_tsp
 CATKIN_DEPENDS lkh_mtsp_solver
#  DEPENDS system_lib
)

include_directories( 
    SYSTEM 
    include 
    ${catkin_INCLUDE_DIRS}
    ${Eigen3_INCLUDE_DIRS} 
    ${PCL_INCLUDE_DIRS}
)

add_executable(test_tsp
    src/test_tsp.cpp
    )
target_link_libraries(test_tsp
    ${catkin_LIBRARIES})

add_executable(test_tsp_with_end
    src/test_tsp_with_end.cpp
    )
target_link_libraries(test_tsp_with_end
    ${catkin_LIBRARIES})

add_executable(test_mtsp
    src/test_mtsp.cpp
    )
target_link_libraries(test_mtsp
    ${catkin_LIBRARIES})

add_executable(test_acvrp
    src/test_acvrp.cpp
    )
target_link_libraries(test_acvrp
    ${catkin_LIBRARIES})